package com.analysis.mapper;

import com.analysis.entity.ProductDomain;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ProductDomainMapper {
    int insert(ProductDomain productDomain);

    int deleteById(@Param("id") Long id);

    int update(ProductDomain productDomain);

    ProductDomain selectById(@Param("id") Long id);

    List<ProductDomain> selectAll();

    ProductDomain selectByProductName(@Param("productName") String productName);

    List<ProductDomain> selectByPage(@Param("offset") int offset, @Param("limit") int limit);

    int countAll();

    List<ProductDomain> listAll();

    List<ProductDomain> selectByProductNameList(@Param("productNames") List<String> productNames);
}
